package com.realtyManage.springboot.Dao;


import com.realtyManage.springboot.Model.Do.Sms;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface SmsRepository extends JpaRepository<Sms, Integer>, JpaSpecificationExecutor<Sms> {

    Sms findByPhone(String userPhone);

    void deleteByPhone(String phone);
}
